#include <iostream>
using namespace std;


int reverse(int x) {
	// Start typing your C/C++ solution below
	// DO NOT write int main() function
	if(x==0)
		return 0;

	int dumpx = x>0? x : -x;
	int res = 0;
	while(dumpx != 0){
		int last = dumpx%10;
		res *= 10;
		res += last;
		dumpx/=10;
	}

	if(x>0)
		return res;
	else
		return -res;
}



int main(){
	return 0;
}